<?php

namespace app\validate;

use share\validate\SceneValidate;

class ModuleInfoValidate extends SceneValidate{
    protected $rule = [
        'id' => 'require|integer',  
        'language' => 'require|length:1,32',
        'describeName' => 'require|length:1,250',      
    ];   
    
    protected $sceneRules = [
        'list' => [
            'id' => 'integer',  
            'language' => 'length:1,32', 
            'describeName'  => 'length:1,250',
        ]
    ];

    protected $scene = [
        'add' => ['id','language','describeName'],
        'del' => ['id'],
        'list' => ['id','language','describeName'],
    ];
}